@import '../styles/_fonts';
@import '../styles/_reset';
@import '../styles/_variables';

body {
    color: @black;
    background-color: @greyWhite;
}

//首页
#popup-root {
    width: 360px;
    height: 600px;
    display: flex;
    flex-flow: column;
    overflow: hidden;

    img:not([alt]),
    img:not([height]),
    img:not([width]) {
        filter: none;
    }

    .bg {
        height: 600px;
    }
    .connect_bg {
        background-position: center 128px;
        height: 600px;
        background-repeat: no-repeat;
        display: flex;
        flex-flow: column;
        align-items: center;
    }

    .header {
        margin-top: 20px;
        height: 56px;
        width: 360px;
        display: flex;
        align-items: center;
        .title {
            font-size: 20px;
            color: #333333;
            text-align: center;
            font-weight: 500;
            width: 100%;
            margin-right: 52px;
        }
        img {
            width: 36px;
            height: 36px;
            margin-left: 16px;
            cursor: pointer;
        }
    }

    .connect {
        display: flex;
        flex-flow: column;
        align-items: center;
        padding-top: 72px;
        .connect_bg {
            display: flex;
            flex-flow: column;
            align-items: center;
            cursor: pointer;
            width: 170px;
            height: 170px;
            background-repeat: no-repeat;
        }
        .connect_btn {
            width: 170px;
            height: 170px;
            background-repeat: no-repeat;
        }

        .connect_point {
            width: 170px;
            height: 170px;
        }

        .connect_text_off {
            font-size: 16px;
            color: #999999;
            text-align: center;
            font-weight: 400;
            margin-top: 24px;
        }
        .connect_text_on {
            font-size: 16px;
            color: #ffa44d;
            text-align: center;
            font-weight: 400;
            margin-top: 24px;
        }
    }

    .auto {
        margin-top: 36px;
        width: 200px;
        height: 44px;
        border: 1px solid #fff7e4;
        border-radius: 22px;
        padding: 0 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .auto_left {
            display: flex;
            align-items: center;
        }
        .auto_left_text {
            font-size: 16px;
            color: #333333;
            font-weight: 400;
            padding-left: 16px;
        }
    }
    .footer {
        margin-top: 48px;
        width: 360px;
        height: 108px;
        background: #fff5d2;
        border-radius: 32px 32px 0px 0px;
        cursor: pointer;
        .footer_box {
            margin: 31px 84px 0 84px;
            display: flex;
            justify-content: space-between;
        }
    }
}

//登录页

.login_bg {
    background-repeat: no-repeat;
    width: 360px;
    height: 600px;
    padding-top: 20px;
    display: flex;
    flex-flow: column;
    align-items: center;
    img:not([alt]),
    img:not([height]),
    img:not([width]) {
        filter: none;
    }
    .login_header {
        width: 360px;
        height: 56px;
        display: flex;
        align-items: center;
        .login_back {
            width: 28px;
            height: 28px;
            margin-left: 16px;
            cursor: pointer;
        }
        .login_title {
            width: 100%;
            font-size: 20px;
            color: #ffffff;
            text-align: center;
            font-weight: 500;
            text-align: center;
            margin-right: 44px;
        }
    }

    .login_logo {
        margin-top: 24px;
    }

    .login_tabs {
        width: 360px;
        margin-top: 40px;
        padding: 0 52px;
        .adm-tabs-content {
            padding: 0;
        }
        .adm-tabs-tab {
            font-size: 16px;
            color: #bebebe;
            letter-spacing: 0;
            text-align: center;
            font-weight: 500;
        }
        .adm-tabs-tab-active {
            color: #ffa956;
        }
        .adm-tabs-tab-line {
            color: #ffa956;
            background-color: #ffa956;
        }
    }

    .login_form {
        .adm-list-default {
            border: none;
        }
        .adm-list-default .adm-list-body {
            border-top: none;
        }
        .adm-input {
            font-size: 14px;
        }
        .adm-input-element {
            font-size: 14px;
        }
        .adm-list-item-content-extra {
            display: flex;
            align-items: center;
        }
        .adm-list-item {
            padding-left: 0;
        }
        .adm-list-item-content {
            border-bottom: none;
        }

        .login_code {
            font-size: 14px;
            color: #ffa956;
            letter-spacing: 0;
            text-align: right;
            font-weight: 400;
            cursor: pointer;
        }
        .countdown {
            font-size: 14px;
            color: #bebebe;
            letter-spacing: 0;
            text-align: right;
            font-weight: 400;
            height: 30px;
        }
        .login_btn {
            margin-top: 30px;
            width: 100%;
            background: #ffa956;
            box-shadow: 0px 3px 6px 0px rgba(203, 133, 67, 0.2);
            border-radius: 22px;
            height: 44px;
        }
    }
}

//个人资料页
.person_bg {
    background-repeat: no-repeat;
    width: 360px;
    height: 600px;
    padding-top: 20px;
    display: flex;
    flex-flow: column;
    align-items: center;
    img:not([alt]),
    img:not([height]),
    img:not([width]) {
        filter: none;
    }
    .person_header {
        width: 360px;
        height: 56px;
        display: flex;
        align-items: center;
        .person_back {
            width: 28px;
            height: 28px;
            margin-left: 16px;
            cursor: pointer;
        }
        .person_title {
            width: 100%;
            font-size: 20px;
            color: #ffffff;
            text-align: center;
            font-weight: 500;
            text-align: center;
            margin-right: 44px;
        }
    }
    .login_logo {
        margin-top: 24px;
    }
    .person_list {
        width: 272px;
        display: flex;
        flex-flow: column;
        .person_list_item {
            display: flex;
            justify-content: space-between;
            height: 40px;
            align-items: center;
            .title {
                font-size: 15px;
                color: #333333;
                letter-spacing: 0;
                font-weight: 400;
            }
            .exta {
                font-size: 14px;
                color: #999999;
                letter-spacing: 0;
                text-align: right;
                font-weight: 400;
            }
            .lingt {
                font-size: 14px;
                color: #ffa956;
                letter-spacing: 0;
                text-align: right;
                font-weight: 400;
            }
        }
    }
    .person_btn {
        margin-top: 16px;
        width: 272px;
        background: #ffa956;
        box-shadow: 0px 3px 6px 0px rgba(203, 133, 67, 0.2);
        border-radius: 22px;
        height: 44px;
    }
    .person_score {
        margin-top: 8px;
        font-size: 14px;
        color: #333333;
        letter-spacing: 0;
        text-align: right;
        font-weight: 400;
        text-decoration: underline;
        cursor: pointer;
    }
    .person_version {
        margin-top: 7px;
        width: 272px;
        text-align: right;
        font-size: 12px;
        color: #999999;
        letter-spacing: 0;
        text-align: right;
        font-weight: 400;
    }
}

//line页面

.line_bg {
    width: 360px;
    height: 600px;
    display: flex;
    flex-flow: column;
    background-color: #fff;

    .line_vip {
        width: 30px;
        height: 18px;
        background-image: linear-gradient(180deg, #ffcd5c 0%, #ff955c 100%);
        border-radius: 4px;
        font-size: 12px;
        color: #ffffff;
        text-align: center;
        font-weight: 400;
        line-height: 18px;
        margin-left: 8px;
    }

    .line_header {
        margin-top: 20px;
        height: 56px;
        width: 360px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f2f2f2;
        .line_back {
            margin-left: 16px;
            width: 28px;
            cursor: pointer;
        }
        .line_rest {
            margin-right: 16px;
            width: 28px;
            cursor: pointer;
        }
        .line_title {
            display: flex;
            width: 100%;
            font-size: 16px;
            color: #333333;
            letter-spacing: 0;
            text-align: center;
            font-weight: 500;
            justify-content: center;
            align-items: center;
            .line_header_img {
                margin-right: 4px;
            }
        }
    }
    .line_list {
        display: flex;
        height: 100%;
        flex-flow: column;
        overflow-y: auto;
        padding: 4px 16px 16px 16px;
        .line_list_group {
            display: flex;
            flex-flow: column;
            .line_list_group_title {
                display: flex;
                width: 100%;
                align-items: center;
                height: 44px;
                font-size: 15px;
                color: #333333;
                font-weight: 400;
            }
            .line_list_group_img {
                margin-right: 8px;
            }
            .line_list_item {
                display: flex;
                height: 44px;
                margin-left: 32px;
                align-items: center;
                cursor: pointer;
                .line_list_item_img {
                    margin-right: 8px;
                }
                .line_list_item_title {
                    display: flex;
                    width: 100%;
                    font-size: 14px;
                    color: #333333;
                    font-weight: 400;
                }
                .line_list_item_check {
                    width: 16px;
                }
            }
        }
    }
}

//产品购买页
.product_bg {
    width: 360px;
    height: 600px;
    display: flex;
    flex-flow: column;
    background-color: #fff;
    .product_header {
        margin-top: 20px;
        height: 56px;
        width: 360px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f2f2f2;
        .product_back {
            margin-left: 16px;
            width: 28px;
            cursor: pointer;
        }
        .product_rest {
            margin-right: 16px;
            width: 28px;
        }
        .product_title {
            display: flex;
            width: 100%;
            font-size: 16px;
            color: #333333;
            letter-spacing: 0;
            text-align: center;
            font-weight: 500;
            justify-content: center;
            align-items: center;
            .line_header_img {
                margin-right: 4px;
            }
        }
    }

    .product_list {
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
        padding: 16px 8px 0px 8px;
        overflow-y: auto;
        .product_list_item {
            width: 156px;
            height: 196px;
            background: #ffffff;
            border: 1px solid #f2f2f2;
            border-radius: 10px;
            display: flex;
            flex-flow: column;
            align-items: center;
            margin-bottom: 16px;
            .product_item_title {
                font-size: 16px;
                color: #333333;
                text-align: center;
                font-weight: 500;
                margin-top: 16px;
                margin-bottom: 10px;
            }
            .product_item_btn {
                width: 100px;
                height: 40px;
                line-height: 40px;
                background: #ffa956;
                box-shadow: 0px 3px 6px 0px rgba(203, 133, 67, 0.2);
                border-radius: 28px;
                font-size: 16px;
                color: #ffffff;
                text-align: center;
                font-weight: 500;
                margin: 16px 0 8px 0;
                cursor: pointer;
            }
            .product_item_list {
                font-size: 14px;
                color: #666666;
                text-align: center;
                font-weight: 400;
                list-style-type: disc;
                li {
                    margin-bottom: 8px;
                }
            }
        }
    }
}

.connect_point {
    animation: turn 1s linear infinite;
}

@keyframes turn {
    0% {
        -webkit-transform: rotate(0deg);
    }
    25% {
        -webkit-transform: rotate(90deg);
    }
    50% {
        -webkit-transform: rotate(180deg);
    }
    75% {
        -webkit-transform: rotate(270deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

.forward-enter {
    opacity: 0;
    transform: translateX(100%);
}

.forward-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 500ms;
}

.forward-exit {
    opacity: 1;
    transform: translateX(0);
}

.forward-exit-active {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 500ms;
}

.back-enter {
    opacity: 0;
    transform: translateX(-100%);
}

.back-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 500ms;
}

.back-exit {
    opacity: 1;
    transform: translateX(0);
}

.back-exit-active {
    opacity: 0;
    transform: translate(100%);
    transition: all 500ms;
}

.router-wrapper {
    overflow: hidden;
}
